package com.yfp.client.util;

/**
 * 设备返回状态常量
 */
public class DeviceErrorCode {

    // --- 200 OK（成功） 请求响应体包含服务器返回的数据
    // 成功
    public static final String SUCCESS = "auth.200";

    // --- 400 客户端请求的语法错误，服务器无法理解  -------------
    // 参数不完整
    public static final String PARAMETER_INCOMPLETE = "auth.400000";

    // --- 401 请求要求用户的身份认证  -------------
    // 消息校验失败
    public static final String MESSAGE_CHECK_FAILED = "auth.401000";
    // 访问Token失效
    public static final String ACCESS_TOKEN_INVALID = "auth.401001";
    // 刷新token失效
    public static final String REFRESH_TOKEN_INVALID = "auth.401002";
    // 临时token失效
    public static final String TEMP_TOKEN_INVALID = "auth.401003";
    // jumpId失效
    public static final String JUMP_ID_INVALID = "auth.401004";
    // 无当前设备
    public static final String NOT_DEVICE =  "auth.401005";

    // --- 403 服务器理解请求客户端的请求，但是拒绝执行此请求  -------------
    // 没有登陆
    public static final String NO_LOGIN = "auth.403000";
    // 没有凭证
    public static final String NOT_PROOF = "auth.403001";
    // 密码不匹配
    public static final String PASSWORD_MISMATCH = "auth.403002";
    // 验证码不匹配
    public static final String CAPTCHA_MISMATCH = "auth.403003";
    // 账号已存在
    public static final String ACCOUNT_EXISTS = "auth.403004";
    // 邮箱已存在
    public static final String EMAIL_EXISTS = "auth.403005";
    // 电话已存在
    public static final String PHONE_EXISTS = "auth.403006";
    // 邮箱不存在
    public static final String EMAIL_NON_EXISTS = "auth.403007";
    // 电话不存在
    public static final String PHONE_NON_EXISTS = "auth.403008";
    // 非法手机号
    public static final String PHONE_ILLEGAL = "auth.403009";
    // 非法邮箱
    public static final String EMAIL_ILLEGAL = "auth.403010";
    // 权限不够
    public static final String NOT_PERMISSIONS = "auth.403011";
    // 条件不足
    public static final String REQUIREMENT_DEFICIENCY = "auth.403012";
    // 安全限制
    public static final String SECURITY_LIMIT = "auth.403013";
    // 非法帐号
    public static final String ACCOUNT_ILLEGAL = "auth.403014";
    // 账号不存在
    public static final String ACCOUNT_NON_EXISTS = "auth.403015";
    // 用户未注册
    public static final String USER_NON_REGISTERED = "auth.403016";
    // 微信已经绑定
    public static final String WE_CHAT_BIND = "auth.403016";


    // --- 501（尚未实施）服务器不具备完成请求的功能
    // 类型不支持
    public static final String PARAMETER_NOT_SUPPORTED = "auth.501000";

    // --- 503 由于超载或系统维护，服务器暂时的无法处理客户端的请求。延时的长度可包含在服务器的Retry-After头信息中
    // 数据库写入失败
    public static final String DATABASE_WRITE_FAILURE = "auth.503000";
    // 功能模块异常
    public static final String FUNCTIONAL_MODULE_ERROR = "auth.503001";


    // --- 504 充当网关或代理的服务器，未及时从远端服务器获取请求
    // 手机验证码发送失败
    public static final String PHONE_CATCHA_SEND_FAILURE = "auth.504000";
    // 电子邮箱验证码发送失败
    public static final String EMAIL_CATCHA_SEND_FAILURE = "auth.504001";

}
